﻿#pragma once

//实现vtk渲染窗口的功能
#include "DlgBase.h"


//单例模式  
class CreateCircleDlg: public DlgBase
{
public:
    CreateCircleDlg(QWidget* parent = nullptr);
    ~CreateCircleDlg();

    bool create();
    void initUI() override;
    void manageConnections() override;

private:
    double m_centerPoint[3] = { 0, 0, 0 };
    double m_normalVector[3] = { 0, 0, 1 };
    double m_polarVector[3] = { 1, 0, 0 };
    double m_radiusValue = 1;

    MyCoordinateEdit* m_centerPointCoord = nullptr;
    MyCoordinateEdit* m_normalVectorCoord = nullptr;
    MyDoubleEdit* m_radiusEdit = nullptr;

    QPushButton* m_okBtn = nullptr; //ok button
    QPushButton* m_cancelBtn = nullptr;   //cancel button
};


